package com.example.gulimall.order.feign;

import com.example.common.utils.R;
import com.example.gulimall.order.vo.FareVo;
import com.example.gulimall.order.vo.OrderItemVo;
import com.example.gulimall.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WareFeignService {
    @PostMapping("/ware/waresku/stock")
    //@RequiresPermissions("ware:waresku:list")
    public R getSkuHasStocks(@RequestParam List<Long> skuIds);
    @GetMapping("/fare/{addrId}")
    public R getFareVo(@PathVariable("addrId") Long addrId);
    @RequestMapping("/ware/waresku/lock/order")
    public R orderLockStock(@RequestBody WareSkuLockVo wareSkuLockVo);
}
